import {
	http
} from '@/service/index.js'
import store from '@/store/index.js'
import configs from '@/config/index.js'

// 查询当前登录用户信息
export const getUserInfo = async (data) => {
	return await http.get(`/personal/center/user/info`, data)
}


export const updateInfo = async (data, config = {}) => {
	return await http.post(`/personal/center/user/updateInfo`, data, config)
}

export const updatePasswd = async (data, config = {}) => {
	return await http.post(`/personal/center/user/updatePasswd`, data, config)
}
export const createleaveword = async (data, config = {}) => {
	return await http.post(`/personal/center/user/leave/word/create`, data, config)
}
export const leaveworddetail = async (data, config = {}) => {
	return await http.get(`/personal/center/user/leave/word/detail`, data, config)
}
export const userListPage = async (data, config = {}) => {
	return await http.get(`/personal/center/user/leave/word/userListPage`, data, config)
}

export const withdrawSetting = async (data, config = {}) => {
	return await http.get(`/personal/center/user/account/withdrawSetting`, data, config)
}

export const logListPage = async (data, config = {}) => {
	return await http.get(`/personal/center/user/account/logListPage`, data, config)
}
export const withdrawDepositListPage = async (data, config = {}) => {
	return await http.get(`/personal/center/user/account/withdrawDepositListPage`, data, config)
}
export const getParamValue = async (data, config = {}) => {
	return await http.get(`/system/param/getParamValue`, data, config)
}


export const withDrawDepositMsgCode = async (data, config = {}) => {
	return await http.post(`/personal/center/user/account/withDrawDepositMsgCode`, data, config)
}

export const withdrawDeposit = async (data, config = {}) => {
	return await http.post(`/personal/center/user/account/withdrawDeposit`, data, config)
}

export const groupTicketTransitionBalance = async (data, config = {}) => {
	return await http.post(`/personal/center/user/account/groupTicketTransitionBalance`, data, config)
}
export const deductionTransitionBalance = async (data, config = {}) => {
	return await http.post(`/personal/center/user/account/deductionTransitionBalance`, data, config)
}

export const shareTransitionBalance = async (data, config = {}) => {
	return await http.post(`/personal/center/user/account/shareTransitionBalance`, data, config)
}
